import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dk_form/flutter_dk_form.dart';

class TitleDemoPage extends StatelessWidget {
  static const String routeName = '/page/title_demo';
  static const String name = "TitleDemoPage";

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("TitleDemoPage"),
      ),
      body: SingleChildScrollView(
        child: Container(
          color: Color(0xFFFF7F7F7),
          child: Column(
            children: <Widget>[
              Text("标题：高度44,字体颜色#666666,字体大小16"),
              TitleWidget(
                "我是标题",
                hasLine: true,
                titleTextStyle: TitleTextStyle.TitleBig,
              ),
              Text("标题：高度56,字体颜色#333333,字体大小16"),
              TitleWidget(
                "我是标题",
                hasLine: true,
                titleTextStyle: TitleTextStyle.TitleBigLight,
              ),
              Text("标题：高度48,字体颜色#666666,字体大小14"),
              TitleWidget(
                "我是标题",
                hasLine: true,
                titleTextStyle: TitleTextStyle.TitleSmall,
              ),

              Text("标题：高度44,字体颜色#666666,字体大小16,无下划线"),
              TitleWidget(
                "我是标题",
                hasLine: false,
                titleTextStyle: TitleTextStyle.TitleBig,
              ),
              Text("标题：高度56,字体颜色#333333,字体大小16,无下划线"),
              TitleWidget(
                "我是标题",
                hasLine: false,
                titleTextStyle: TitleTextStyle.TitleBigLight,
              ),
              Text("标题：高度48,字体颜色#666666,字体大小14,无下划线"),
              TitleWidget(
                "我是标题",
                hasLine: false,
                titleTextStyle: TitleTextStyle.TitleSmall,
              ),
            ],
          ),
        )
      ),
    );
  }
}
